#ifndef DOWNLOADLISTITEMWIDGET_H
#define DOWNLOADLISTITEMWIDGET_H

#include <QWidget>
#include <QTimer>

namespace Ui {
class DownloadListItemWidget;
}

class DownloadListItemWidget : public QWidget
{
    Q_OBJECT
public:
    explicit DownloadListItemWidget(QWidget *parent = 0);
    ~DownloadListItemWidget();

signals:

public slots:
    void progressChangeSlot(qint64, qint64);
    void updateFileInfo(const QString&, qint64);
    void stateChanged(const QString&);
    void updateDownloadSpeed();

protected:
    QString sizeStandardization(qint64);
    QString timeStandardization(qint64);
    Ui::DownloadListItemWidget *ui;
    qint64 m_previousSize, m_totalSize;
    QTimer m_timer;

};

#endif // DOWNLOADLISTITEMWIDGET_H
